package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.union.huaben.UnionHuaBenPatrons;

import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_unionchest", autoSave = true)
public class LogUnionChest {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "商会")
    private String unionUid;

    @FieldTypeAnnotation(desc = "宝箱id")
    private long boxId;

    @FieldTypeAnnotation(desc = "宝箱类型")
    private int boxType;

    @FieldTypeAnnotation(desc = "宝箱道具id")
    private int boxGoodsId;

    @FieldTypeAnnotation(desc = "位置")
    private int boxIndex;

    @FieldTypeAnnotation(desc = "分享者")
    private long shareUserId;

    @FieldTypeAnnotation(desc = "奖励id")
    private String rewards;

    @FieldTypeAnnotation(desc = "分享时间")
    private Date shareTime;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogUnionChest(int activityId, long userId, String unionUid, long boxId, int boxType, int boxGoodsId, int boxIndex, long shareUserId, String rewards, Date shareTime) {
        this.activityId = activityId;
        this.userId = userId;
        this.unionUid = unionUid;
        this.boxId = boxId;
        this.boxType = boxType;
        this.boxGoodsId = boxGoodsId;
        this.boxIndex = boxIndex;
        this.shareUserId = shareUserId;
        this.rewards = rewards;
        this.shareTime = shareTime;
        this.logTime = new Date();
    }
}
